/*
 * AppDesc.h
 *
 * Created: 19/03/2012 17:47:38
 *  Author: marionse
 *
 * PREVU POUR ZED 324P
 */ 

#ifndef APPDESC_H_
#define APPDESC_H_

/**
* \brief Inclusion des modules optionnel que l'on souhaite voir dans l'applicatif
*/
#include "ModLed.h"

/**
* \brief On inclut les famille que l'on souhaite voir traiter par l'applicatif
*/
// #include "FamGeneral.h"

/**
* \brief definit l'applicatif
*/
#define APP_ID APP_MONITOR_HB

/**
* \brief Configuration de la liaison avec em260
*/
/** nHOST_IN */
#define HOST_IN_DDR		DDRD
#define HOST_IN_PIN		PIND
#define HOST_IN_PORT	PORTD
#define HOST_IN_BIT		2

/** nReset */
#define RSTB_DDR	DDRD
#define RSTB_PIN	PIND
#define RSTB_PORT	PORTD
#define RSTB_BIT	3

/** nWake_Up */
#define WAKE_UP_DDR		DDRB
#define WAKE_UP_PIN		PINB
#define WAKE_UP_PORT	PORTB
#define WAKE_UP_BIT		1

/**
* \brief Configuration de l'applicatif
*/
// utilise une init apres les modules
#define HAVE_APP_POST_INIT
#define AppDescPostInit ModMonitorHBInit
// utilise le tick apres les modules
#define HAVE_APP_POST_TICK
#define AppDescPostTick ModMonitorHBTick

/**
* \brief utilisation d'une led de heart beat
*/
#define HEARTBEAT_LED_DDR	DDRB
#define HEARTBEAT_LED_PIN	PINB
#define HEARTBEAT_LED_PORT	PORTB
#define HEARTBEAT_LED_MASK	(1<<3)

/**
* \brief Module Monitor HeartBeat
*/

// Led d'etat
#define MONITOR_STATE_LED_DDR	DDRB
#define MONITOR_STATE_LED_PIN	PINB
#define MONITOR_STATE_LED_PORT	PORTB
#define MONITOR_STATE_LED_MASK	(1<<2)

// io a pulse --___--
#define MONITOR_PULSE_LOW_DDR	DDRA
#define MONITOR_PULSE_LOW_PIN	PINA
#define MONITOR_PULSE_LOW_PORT	PORTA
#define MONITOR_PULSE_LOW_MASK	(1<<1)

// io a pulse __---__
#define MONITOR_PULSE_HIGH_DDR	DDRA
#define MONITOR_PULSE_HIGH_PIN	PINA
#define MONITOR_PULSE_HIGH_PORT	PORTA
#define MONITOR_PULSE_HIGH_MASK	(1<<2)

/**
* \brief CONFIGURATION DES FAMILLES
*/

/**
* \brief FAMILLE GENERAL
*/



#endif /* APPDESC_H_ */